package com.ran.patterns.abstractFactory.main;

import com.ran.patterns.abstractFactory.core.Provider;
import com.ran.patterns.abstractFactory.core.impl.MailFactory;
import com.ran.patterns.abstractFactory.core.impl.SmsFactory;
import com.ran.patterns.factoryMethod.forCore.Sender;

public class Test {
	public static void main(String[] args) {
		Sender sender;
		Provider provider = new MailFactory();
		sender = provider.produce();
		sender.send();
		provider = new SmsFactory();
		sender = provider.produce();
		sender.send();
	}
}
